<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>属性绑定</title>
    <style>
          .a{
            border: 3px solid red;
          }
    </style>
</head>
<body>
    <div id="div">
        <a :href="url">哔哩哔哩</a>
        <br>
        <div :class="cls">我要</div>
    </div>
</body>
      <script src="js/vue.js"></script>
      <script>
          new Vue({
            el:"#div",
            data:{
                url:"https://www.bilibili.com/",
                cls:"a"
            }
          });
      </script>
</html>